package org.dromara.pe.service;

import org.dromara.pe.domain.AskLeave;
import org.dromara.pe.domain.vo.AskLeaveVo;
import org.dromara.pe.domain.bo.AskLeaveBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 免测申请Service接口
 *
 * @author Lion Li
 * @date 2024-09-02
 */
public interface IAskLeaveService {

    /**
     * 查询免测申请
     */
    AskLeaveVo queryById(Long leaveId);

    /**
     * 查询免测申请列表
     */
    TableDataInfo<AskLeaveVo> queryPageList(AskLeaveBo bo, PageQuery pageQuery);

    /**
     * 查询免测申请列表
     */
    List<AskLeaveVo> queryList(AskLeaveBo bo);

    /**
     * 新增免测申请
     */
    Boolean insertByBo(AskLeaveBo bo);

    /**
     * 修改免测申请
     */
    Boolean updateByBo(AskLeaveBo bo);

    /**
     * 校验并批量删除免测申请信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 校验并批量跟新免测申请信息
     */
    Boolean updateValidByIds(Collection<Long> ids, String status ,  Boolean isValid);
}
